}
const { ControlsState } = OverviewControls;
- const inSessionTransition =
- this._overviewAdjustment.value <= ControlsState.WINDOW_PICKER;
+ const { currentState, transitioning } =
+ this._overviewAdjustment.getStateTransitionParams();
+ const inSessionTransition = currentState <= ControlsState.WINDOW_PICKER;
const window = this._sortedWindows[0];
const [, bottomOversize] = window.chromeHeights();
const [containerX, containerY] = containerBox.get_origin();
- const extraHeightProgress = this._overviewAdjustment.value -
- OverviewControls.ControlsState.WINDOW_PICKER;
+ const extraHeightProgress =
+ currentState - OverviewControls.ControlsState.WINDOW_PICKER;
const extraClipHeight = bottomOversize * (1 - extraHeightProgress);
workspaceBoxWidth = 0;
workspaceBoxHeight = 0;
- child.opacity = stateAdjustementValue * 255;
+ if (transitioning)
+ child.opacity = stateAdjustementValue * 255;
}
// Don't allow the scaled floating size to drop below